import 'package:get/get.dart';
import 'package:school_assistant_m/app/modules/home/controllers/home_controller.dart';
import 'package:school_assistant_m/app/routes/app_pages.dart';
import 'package:school_assistant_m/store/login_store.dart';

class SettingsController extends GetxController {
  //TODO: Implement SettingsController

  final homeController = Get.put(HomeController());
  @override
  void onInit() {
    super.onInit();
  }

  @override
  void onReady() {
    super.onReady();
  }

  @override
  void onClose() {}
  void logout() async {
    await LoginStore().setToken('');
    Get.offAllNamed(Routes.LOGIN);
    Get.delete<HomeController>();
  }
}
